#!/bin/bash

meson --prefix=/home/pbb3/qemu-busybox-test/rootfs-xfce -Ddefault_library=both --cross-file cross_arm.txt builddir
ninja -C builddir -j64
ninja -C builddir install


# cross_arm.txt
# [host_machine]
# system = 'linux'
# cpu_family = 'arm'
# cpu = 'arm'
# endian = 'little'

# [properties]
# c_args = []
# c_link_args = []

# [binaries]
# c = 'arm-linux-gnueabihf-gcc'
# cpp = 'arm-linux-gnueabihf-g++'
# ar = 'arm-linux-gnueabihf-ar'
# ld = 'arm-linux-gnueabihf-ld'
# objcopy = 'arm-linux-gnueabihf-objcopy'
# strip = 'arm-linux-gnueabihf-strip'
# pkgconfig = 'arm-linux-gnueabihf-pkg-config'